﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

namespace Nb.Common.Extensions
{
    public static class EnumExtensions
    {
        /// <summary>
        /// 获取枚举类型的中文描述
        /// </summary>
        /// <param name="enumData"></param>
        /// <returns></returns>
        public static string Description(this Enum enumData)
        {
            return EnumHelper.GetDescription(enumData);
        }
    }
}
